// use core::blockchain::*;

use blockchain1::blockchain::BlockChain;

fn main() {
    let mut block_chain = BlockChain::new_block_chain();

    block_chain.add_block("a->b : 5 btc".to_string());

    block_chain.add_block("b->c : 1 btc".to_string());

    block_chain.add_block("c->m : 11 btc".to_string());


    for block in block_chain.blocks {
        println!("++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
        println!("{:#?}", block); // 换行打印
        println!("")
    }
}
